package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 外聘表对象 econtract
 *
 * @author ruoyi
 * @date 2023-12-11
 */
public class Econtract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String cno;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String name;

    /** 个人电话 */
    @Excel(name = "个人电话")
    private String phone;

    /** 个人邮箱 */
    @Excel(name = "个人邮箱")
    private String email;

    /** 合同内容 */
    @Excel(name = "合同内容")
    private String content;

    /** 合同起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 合同结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCno(String cno)
    {
        this.cno = cno;
    }

    public String getCno()
    {
        return cno;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cno", getCno())
                .append("name", getName())
                .append("phone", getPhone())
                .append("email", getEmail())
                .append("content", getContent())
                .append("startDate", getStartDate())
                .append("endDate", getEndDate())
                .toString();
    }
}
